package com.ml.loan.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ml.loan.sys.dao.SysWebInfoMapper;
import com.ml.loan.sys.model.SysWebInfo;
import com.ml.loan.sys.service.SysWebInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 网站配置 服务实现类
 * </p>
 *
 * @author mickey
 * @since 2019-12-13
 */
@Service
public class SysWebInfoServiceImpl extends ServiceImpl<SysWebInfoMapper, SysWebInfo> implements SysWebInfoService {

    @Override
    public SysWebInfo getWebInfo() {
        LambdaQueryWrapper<SysWebInfo> wrapper = new LambdaQueryWrapper<>();
        wrapper.orderByDesc(SysWebInfo::getCreateTime);
        return getOne(wrapper);
    }
}
